import { RouteRecordRaw, RouterView } from 'vue-router';
import AsyncComponent from '../utils/async-component';

const DailyRoute: RouteRecordRaw = {
  path: 'daily',
  name: 'daily',
  component: RouterView,
  meta: { title: '日常教学' },
  children: [
    {
      path: 'prepare-teach',
      name: 'prepare-teach',
      meta: { title: '班级备授课' },
      component: AsyncComponent(() => import('@/views/prepare-teach/index.vue'))
    },
    {
      path: 'prepare-check',
      name: 'prepare-check',
      meta: { title: '备授课审核' },
      component: AsyncComponent(() => import('@/views/check-new/index.vue'))
    },
    {
      path: 'one-prepare',
      name: 'one-prepare',
      meta: { title: '一对一备课' },
      component: AsyncComponent(() => import('@/views/one-prepare/index.vue'))
    },
    {
      path: 'one-examine',
      name: 'one-examine',
      meta: { title: '备课审核' },
      component: AsyncComponent(() => import('@/views/one-examine/index.vue'))
    },
    {
      path: 'wrong-question',
      name: 'wrong-question',
      meta: { title: '错题集' },
      component: AsyncComponent(() => import('@/views/wrong-question/index.vue'))
    },
    {
      path: 'my-student',
      name: 'my-student',
      meta: { title: '我的学员' },
      component: AsyncComponent(() => import('@/views/my-student/index.vue'))
    },
    {
      path: 'member',
      name: 'member',
      meta: { title: '会员管理' },
      component: AsyncComponent(() => import('@/views/member/index.vue'))
    },
  ]
}


export default DailyRoute;
